<template>
  <a-button :type="small ? 'link' : 'primary'" :size="small ? 'small' : 'middle'">
    <template #icon>
      <Icon icon="lucide:hard-drive-upload" />
    </template>
    {{ text }}
  </a-button>
</template>

<script lang="ts">
  import { defineComponent } from 'vue';
  import { Icon } from '@/components/Icon';
  import { propTypes } from '@/utils/propTypes';

  export default defineComponent({
    name: 'AButtonUpload',
    components: { Icon },
    props: {
      auth: propTypes.string,
      small: propTypes.bool,
      text: propTypes.string.def('上传'),
    },
    setup() {},
  });
</script>
